/* General Reset & Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    min-height: 100vh;
    width: 100%;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #0a2738;
}

body {
    background: #f4f4f4 url('img/rayas.svg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
.top-nav {
    background-color: #f6f6f6;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}

.personas {
    font-weight: 500;
    color: #da291c;
    border-bottom: 3.5px solid #da291c;
    padding-bottom: 6px;
    margin-bottom: -9px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.mas-claro {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Main Header */
.main-header {
    background-color: #da291c;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.hamburger {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mi-claro {
    background-color: transparent;
    border: 1.5px solid white;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mi-claro:hover {
    background-color: white;
    color: #da291c;
}

/* Title Bar */
.title {
    font-size: 22px;
    color: #555;
    text-align: center;
    background: linear-gradient(to bottom, #fcfcfc 0%, #f0f0f0 100%);
    padding: 20px 15px 35px 15px;
    margin: 0;
    font-weight: 300;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border-bottom: 1.5px solid #e0e0e0;
    width: 100%;
}

.title span {
    color: #da291c;
    font-weight: 700;
}

/* Content wrapper card */
.content {
    max-width: 550px;
    width: 90%;
    margin: 30px auto 40px auto;
    padding: 30px 25px;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Steps tracker and connecting line matching detail.php */
.steps-wrapper {
    position: relative;
    margin-top: -27px;
    z-index: 2;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 0 10px;
}

.steps-line {
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 2px;
    background-color: #e5e5e5;
    z-index: 1;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    position: relative;
}

.step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ededed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #3b9db4;
}

.step-text {
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
    color: #3b9db4;
    font-weight: 500;
}

.step-text.inactive {
    color: #000;
}

/* Description styling */
.description {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
}

/* Form details */
.service-selection-title {
    font-size: 14.5px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.service-options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.service-option {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    min-width: 250px;
    max-width: 320px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    user-select: none;
    margin: 0;
}

.service-option:hover {
    border-color: #da291c;
    background-color: #fdf2f1;
}

/* Selection style when radio input is checked or option is active */
.service-option:has(input[type="radio"]:checked),
.service-option.active {
    border-color: #da291c;
    background-color: #fdf2f1;
    box-shadow: 0 0 0 1px #da291c;
}

.service-icon {
    margin-right: 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-name {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    text-align: left;
    flex-grow: 1;
}

.service-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.service-radio input[type="radio"] {
    accent-color: #da291c;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Force override of inline styles on inputs and recaptcha to allow responsiveness */
.input-container {
    margin: 0 0 25px 0 !important;
}

.input-container input {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    text-align: center;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: #da291c;
}

.captcha-container {
    margin: 0 0 25px 0 !important;
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    border-radius: 3px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.05);
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-red {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #da291c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-red:hover:not(:disabled) {
    background-color: #b51f15;
}

.btn-red:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-gray {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-gray:hover {
    background-color: #f5f5f5;
}

/* Footer Box Styles */
.custom-footer {
    background-color: #383838;
    color: #eee;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #2e2e2e;
    width: 100%;
}

.footer-socials {
    background-color: #2e2e2e;
    padding: 12px 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #e5e5e5;
    color: #2e2e2e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icon:hover {
    background-color: #da291c;
    color: white;
}

.footer-links-container {
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links-container a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links-container a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-divider {
    color: #888;
    margin: 0 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-nav {
        padding: 8px 15px;
    }
    
    .main-header {
        padding: 12px 15px;
    }
    
    .content {
        margin: 20px auto;
        padding: 20px 15px;
        width: calc(100% - 20px);
    }
    
    .service-option {
        width: 85%;
    }
    
    .steps-wrapper {
        margin-top: -24px !important;
    }

    .steps-line {
        top: 24px;
    }
    
    .steps::before {
        left: 10%;
        right: 10%;
    }
    
    .step {
        width: 42px;
        height: 42px;
        border-width: 3px;
    }
    
    .step-text {
        font-size: 12px;
    }
}