/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {margin: 0; padding: 0; box-sizing: border-box;}

html {
	height: 100%;

	/*background = gradient + image pattern combo*/
	background-color: #FAF5EA;
}

body {
	font-family: montserrat, arial, verdana;
	overflow-x: hidden;
	width: 100%;
}

a {
	color: #2C3E50;
	text-decoration: none;
}

a:hover {
	color: #4DBE95;
	text-decoration: underline;
}

#section {
    background-size: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 155px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.header-block {
    padding: 20px 0;
    width: 100%;
    text-align: center;
    max-width: 390px;
    margin: 0 auto;
}

.brand-logo {
    width: 80%;
    max-width: 325px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .header-block {
        max-width: 325px;
        padding: 15px 0;
    }
    
    .brand-logo {
        width: 70%;
        max-width: 260px;
    }
}

@media screen and (max-width: 480px) {
    .header-block {
        max-width: 260px;
        padding: 10px 0;
    }
    
    .brand-logo {
        width: 60%;
        max-width: 195px;
    }
}

/*form styles*/
#msform {
    width: 100%;
    max-width: 650px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

#msform fieldset {
	background: white;
	border: 0 none;
	border-radius: 3px;
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.1);
	padding: 20px;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
	display: none;
}
/*inputs*/
#msform input, #msform textarea {
	padding: 12px 15px;
	border: 1px solid #ccc;
	border-radius: 3px;
	width: 100%;
	box-sizing: border-box;
	font-family: montserrat;
	color: #2C3E50;
	font-size: 13px;
}

#msform input:focus {
    border-color: #4DBE95;
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 190, 149, 0.2);
}

/*buttons*/
#msform .action-button {
    width: auto;
    min-width: 120px;
    white-space: nowrap;
    background: #4DBE95;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 1px;
    cursor: pointer;
    padding: 12px 24px;
    margin: 5px auto 20px;
    min-height: 44px;
    display: block;
}
#msform .action-button:hover, #msform .action-button:focus {
	background: #33A97F;
}

.content-gif {
	height: 120px;
	padding-bottom: 20px;
}

/*headings*/
.fs-title {
	font-size: 2rem;
	font-weight: 700;
	color: #2c3e50;
	margin: 80px 0 20px 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
	position: relative;
	padding-bottom: 1rem;
	word-wrap: break-word;
	max-width: 100%;
}

.fs-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: #6dbc98;
	border-radius: 2px;
}

/* Fieldset Description */
.fs-description {
	font-size: 1.2rem;
	line-height: 1.6;
	color: #34495e;
	text-align: center;
	margin: 1.5rem auto;
	max-width: 600px;
	padding: 0 1rem;
	word-wrap: break-word;
	max-width: 100%;
}

/* Fieldset Subtitle */
.fs-subtitle {
	font-size: 0.95rem;
	font-weight: 500;
	color: #7f8c8d;
	text-align: center;
	margin: 1.2rem 0;
	font-style: italic;
	line-height: 1.4;
	word-wrap: break-word;
	max-width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.fs-title {
		font-size: 1.5rem;
		letter-spacing: 1px;
		margin: 1.5rem 0;
	}
	
	.fs-title::after {
		width: 40px;
		height: 2px;
	}

	.fs-description {
		font-size: 1.1rem;
		margin: 1.2rem auto;
	}

	.fs-subtitle {
		font-size: 0.9rem;
		margin: 1rem 0;
	}
}

@media (max-width: 480px) {
	.fs-title {
		font-size: 1.3rem;
	}

	.fs-description {
		font-size: 1rem;
	}

	.fs-subtitle {
		font-size: 0.85rem;
	}
}

.pair {
	color: red;
	margin-top: 20px;
	margin-bottom: 20px;
	background-color: #f0f0f0;
	padding: 10px;
	border-radius: 5px;
}

.ps-spacing {
	margin: 90px;
	margin-bottom: 60px;
	content: "  ";
}

.code {
	background-color: white;
	margin: 0px;
}

.cs-spacing {
	padding-left: 110px;
	content: "  ";
}

#msform input[type="text"],
#msform input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#main-container textarea {
  width: 100%;
  max-width: 500px;
}

/* Media queries for different screen sizes */
@media screen and (max-width: 768px) {
  .fs-title {
    font-size: 24px;
  }
  
  .fs-description {
    font-size: 16px;
  }
}

/* Add mobile-specific adjustments */
@media screen and (max-width: 768px) {
    #msform, #section {
        width: 100%;
        padding: 10px;
        margin: 0;
    }
    
    #msform fieldset {
        margin: 0;
        border-radius: 0; /* Optional: remove rounded corners on mobile */
    }

    /* Adjust button for better mobile experience */
    #activate_button {
        width: 100%;
        max-width: 200px;
        margin: 20px auto;
        display: block;
    }

    #msform .action-button {
        width: auto;
        min-width: 200px;
        white-space: nowrap;
    }
}

/* Additional styles for connect page */
.pure-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#code_input {
    width: 100%;
    margin-bottom: 10px;
}

.code {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

/* Mobile adjustments for connect page */
@media screen and (max-width: 768px) {
    .pure-form {
        padding: 0 10px;
    }

    #code_button {
        width: 100%;
        max-width: 200px;
        margin: 20px auto;
    }
}

/* Input Groups */
.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #2C3E50;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
}

/* Form Inputs */
#msform input, 
#msform textarea,
.pure-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2C3E50;
    font-size: 13px;
}

/* Remove max-width constraints */
#code_input {
    width: 100%;
    margin-bottom: 10px;
}

/* Update form containers */
.pure-form {
    width: 100%;
    padding: 0;
}

#msform fieldset {
    width: 100%;
    padding: 20px;
}

/* Typography with constrained width */
.fs-title, 
.fs-description,
.fs-subtitle,
.input-group,
#code_input,
.pure-form {
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Input Groups */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #2C3E50;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Inputs - unified styles */
#msform input, 
#msform textarea,
.pure-form input,
#code_input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2C3E50;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Remove any conflicting styles */
.pure-form {
    padding: 0;
}

#msform fieldset {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

#progressbar li {
    list-style-type: none;
    color: #666;
    text-transform: uppercase;
    font-size: 14px;
    width: 25%;
    float: left;
    position: relative;
    text-align: center;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 30px;
    line-height: 30px;
    display: block;
    font-size: 16px;
    color: #fff;
    background: #666;
    border-radius: 50%;
    margin: 0 auto 5px auto;
}

/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #666;
    position: absolute;
    left: -50%;
    top: 15px;
    z-index: -1;
}

#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}

/*marking active/completed steps blue*/
#progressbar li.active:before, #progressbar li.active:after {
    background: #3498db;
    color: white;
}

#msform fieldset {
    display: none;
}

#msform fieldset:first-of-type {
    display: block;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

/* Status Indicators */
.status-indicator {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-text {
    font-size: 0.9rem;
    color: #666;
}

/* Step Instructions */
.step-instructions {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #4DBE95;
}

.step-instructions ol {
    padding-left: 20px;
}

.step-instructions li {
    margin: 10px 0;
    color: #2C3E50;
}

/* Activation Progress */
.activation-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #4DBE95;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.progress-step.active .step-text {
    color: #4DBE95;
    font-weight: bold;
}

.progress-step.completed .step-number {
    background: #2C3E50;
}

/* Loading States */
.action-button.loading {
    position: relative;
    color: transparent;
}

.action-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.progressbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    width: 90%;
    margin: 20px auto 50px;
    position: relative;
    padding: 0 15px;
}

.progressbar::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: calc(100% - 80px);
    background-color: #dcdcdc;
    z-index: 0;
    left: 40px;
}

.progress-step {
    background-color: #f0f0f0;
    color: #777;
    border-radius: 50%;
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #6dbc98;
    color: white;
    box-shadow: 0 3px 8px rgba(109, 188, 152, 0.3);
    transform: scale(1.1);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: 60px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    width: 100px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.progress-step.active::after {
    color: #6dbc98;
    font-weight: 600;
}

/* Add these new styles for the setup steps */
.setup-steps {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px 30px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.setup-steps h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.setup-steps ol {
    padding-left: 20px;
}

.setup-steps li {
    margin: 12px 0;
    color: #555;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.setup-steps input[type="checkbox"] {
    margin-top: 0;
    width: 8px;
    height: 8px;
    min-width: 8px;
    flex: 0 0 20px;
    border: 1px solid #6dbc98;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background: white;
}

.setup-steps input[type="checkbox"]:checked {
    background: white;
}

.setup-steps input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 28px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.setup-steps li.important input[type="checkbox"] {
    border-color: #dc3545;
}

.setup-steps li.important input[type="checkbox"]:checked {
    background: white;
}

.setup-steps li.important input[type="checkbox"]:checked::after {
    color: #dc3545;
}

.setup-steps label {
    cursor: pointer;
    flex: 1;
    padding: 0;
    align-self: flex-start;
    padding-top: 2px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .setup-steps input[type="checkbox"] {
        width: 7px;
        height: 7px;
        min-width: 7px;
    }

    .setup-steps input[type="checkbox"]:checked::after {
        font-size: 24px;
    }
}

/* Enhance the title and description */
.fs-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.fs-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.fs-subtitle {
    color: #777;
    margin: 20px 0;
}

/* Enhance the action button */
.action-button {
    background-color: #4CAF50;
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76,175,80,0.25);
    margin: 30px 0;
    min-width: 220px;
    text-align: center;
}

.action-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76,175,80,0.35);
}

.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(76,175,80,0.2);
}

/* Add these styles for navigation links */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.nav-link {
    color: #6dbc98;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(109, 188, 152, 0.1);
    text-decoration: none;
}

.nav-link.back::before {
    content: "← ";
}

.nav-link.forward::after {
    content: " →";
}

/* Adjust progress bar for mobile */
@media screen and (max-width: 768px) {
    .progressbar {
        max-width: 280px;
        margin: 15px auto 40px;
    }

    .fs-title {
        margin-top: 40px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    #msform fieldset {
        padding-top: 30px;
    }

    .progress-step {
        height: 20px;
        width: 20px;
        padding: 15px;
        font-size: 11px;
    }

    .progress-step::after {
        font-size: 10px;
        top: 40px;
        width: 60px;
    }

    .progressbar::before {
        width: calc(100% - 50px);
        left: 25px;
        height: 2px;
    }
}

/* Even smaller screens */
@media screen and (max-width: 375px) {
    .progressbar {
        max-width: 240px;
    }

    .progress-step {
        height: 18px;
        width: 18px;
        padding: 13px;
        font-size: 10px;
    }

    .progress-step::after {
        font-size: 9px;
        top: 35px;
        width: 55px;
    }
}

.setup-steps li.important {
    color: #dc3545;  /* Red color */
    font-weight: 500;
}

.setup-steps li.important::before {
    border-color: #dc3545;  /* Red border for the checkbox */
}

.setup-steps li.important::after {
    color: #dc3545;  /* Red checkmark */
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 14px;
    font-weight: 500;
}

/* Focus state */
#msform input:focus {
    border-color: #6dbc98;
    outline: none;
    box-shadow: 0 0 0 2px rgba(109, 188, 152, 0.2);
}

.checkpoint-container {
    margin: 25px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #6dbc98;
    border-radius: 4px;
}

.checkpoint-title {
    font-size: 16px;
    color: #2C3E50;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.checkpoint-icon {
    font-size: 36px;
    color: #6dbc98;
}