@import 'style.css';


header{
    position: static;
}
#skeleton-loader{
    display: none; 
    width: 100%; 
    max-width: 800px; 
    margin: 2em auto;
}

#skeleton-loader h2{
    font-family: var(--title-family);
    text-align: center; 
    color: var(--button-color);
}

.skeleton-card {
    background: #f0f0f0;
    height: 150px;
    border-radius: 12px;
    margin-block: 2.5em;
    /* The advanced pulse animation */
    animation: pulse 1.5s infinite ease-in-out;
}

#ai-preview-form{
    display: none;
}

@keyframes pulse {
    0% { background-color: #f0f0f0; }
    50% { background-color: #e0d8d5; } /* Pulses to a slight brand color */
    100% { background-color: #f0f0f0; }
}


.request-container {
    width: var(--container-width);
    margin: calc(var(--margin-top)) auto var(--margin-top) auto;
}

.request-header {
    text-align: center;
    margin-bottom: 4em;
}

.request-header .subtitle {
    font-family: var(--paragraph-font);
    color: #666;
    font-size: 1.2em;
    max-width: 600px;
    margin: 1em auto 0 auto;
}


.request-split {
    display: flex;
    gap: 4em;
    justify-content: space-between;
}

.request-info {
    flex: 1;
}

.request-form-wrapper {
    flex: 1.5; 
    background-color: #F6F2F2;
    padding: 3em;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.request-form-wrapper h3{
    text-align: center;
    font-family: var(--poppins-font);
    color: rgb(24, 23, 23);
    font-size: 1.5em;
    text-shadow: #111;
    margin-bottom: calc(var(--margin-bottom)/4);

}

.request-info h2 {
    font-family: var(--title-family);
    color: #774936;
    margin-bottom: 1.5em;
}

.step {
    display: flex;
    gap: 1.5em;
    margin-bottom: 2em;
}

.step-num {
    background-color: var(--button-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-family: var(--title-family);
    font-size: 1.2em;
    flex-shrink: 0;
}

.step h3 {
    font-family: var(--role-font);
    margin-bottom: 0.5em;
}

.step p {
    font-family: var(--paragraph-font);
    color: #555;
    font-size: 0.95em;
}

.note h4, .options h4{
    font-family: var(--role-font);
    color:  #774936;
    margin-bottom: 0.85em;
}
.note p{
    font-family: var(--paragraph-font);
    color: #555;
    font-size: 0.85em;
    margin-bottom: 0.5em;
    text-align: justify;
}

.options{
    margin-top: calc(var(--margin-top)/3);
}
.option-btns-group{
    display: flex;
    justify-content: flex-start;
    gap:1em;
}

#official-plan, #ai-plan{
    width: 100%;
    padding-block:0.85em;
    padding-inline:0.25em;
    font-size:1em;
    border: none;
    color: white;
    border-radius: 5px;
    font-family: var(--role-font);
    cursor: pointer;
    background-color: var(--button-color);
}

#official-plan:disabled{
    color: rgb(198, 195, 195);
    cursor:no-drop;
    background-color: rgba(128, 128, 128, 0.245);
   
}
#ai-plan:disabled{
    cursor:no-drop;

    color: rgb(198, 195, 195);
    background-color: rgba(128, 128, 128, 0.245);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-row {
    display: flex;
    gap: 1.5em;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-family: var(--poppins-font);
    text-align: left;
    font-weight: bold;
    margin:0;
    padding-left:0.2em;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}
.alert-danger{
    list-style-type: none;
    font-size: 1em;
    text-align: left;
    margin:0;
    padding:0;
    margin-top: 1em;
}
.errorlist{
    list-style-type:none ;
    margin:0;
    padding:0;
}
.errorlist li{
    color:red;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form select,
.custom-form textarea {
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--poppins-font);
    font-size: 1em;
    width: 100%;
    background-color: white;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: 2px solid var(--button-color);
    border-color: transparent;
}


.radio-group {
    display: flex;
    gap: 1em;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0; 
}

.radio-card span {
    display: block;
    text-align: center;
    padding: 1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--poppins-font);
    transition: 0.3s ease;
    background-color: white;
}

.radio-card input:checked + span {
    border-color: var(--button-color);
    background-color: rgba(212, 163, 115, 0.1); 
    color: #774936;
    font-weight: bold;
}

.button-group{
    width: 100%;
}

.submit-btn {
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 1.25em;
    font-size: 1em;
    font-weight: bold;
    font-family: var(--poppins-font);
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1em;
    transition: 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #b65329;
}


@media only screen and (max-width: 1024px) {
    .request-container { 
        width: 90%;
        margin-top: 1em;
    }
    .request-split { flex-direction: column; gap: 3em; }
    .form-row { flex-direction: column; gap: 1.5em; }
   
}
@media only screen and (max-width: 768px) {
    .request-container{
        font-size: 0.85em;
        padding: 1em;
    }
    .request-form-wrapper { padding: 1.5em; }
    .request-form-wrapper form{
        margin: 0;
    }
    .request-header p{
        text-align: center;
    }
    .button-group{
        margin: 0;
    }
    .submit-btn{
        margin: 0;
        font-size: 1em;
        width: 100%;
        padding: 1em;
    }
    .radio-group { flex-direction: column; } 
    #official-plan, #ai-plan{
        font-size: 1em;
    }

}


.form-control {
    width: 100%;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--poppins-font);
    font-size: 1em;
    background-color: white;
    box-sizing: border-box; 
    transition: all 0.3s ease;
}


.form-control:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(186, 150, 134, 0.2); 
}


textarea.form-control {
    resize: vertical; 
}

.form-control::placeholder {
    color: #aaa;
}

.custom-form {
    width:100%;
    display: flex;
    flex-direction: column;
    gap: 1.5em; 
}

.form-row {
    display: flex;
    width: 100%;
    gap: 1.5em; 
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1; 
}

.form-label {
    font-family: var(--poppins-font);
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 0.9em;
    color: #333;
}

@media only screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5em;
    }
}



.workout-result-container {
    width: calc(var(--container-width)/1.5);
    margin: calc(var(--margin-top, 5em) + 2em) auto;
    font-family: var(--paragraph-font, sans-serif);
}

.workout-header {
    text-align: center;
    margin-bottom: 3em;
}

.ai-badge {
    background-color: #f0e6e1;
    color: #ba9686;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workout-header .title {
    font-family: var(--title-family, serif);
    font-size: 2.5em;
    margin: 0.5em 0;
    color: #333;
}

.duration-tag {
    font-weight: bold;
    color: #666;
    font-size: 1.1em;
}


.workout-section {
    margin-bottom: 3em;
}

.section-title {
    font-family: var(--title-family, serif);
    border-bottom: 2px solid #ba9686;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    color: #333;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.exercise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}

.exercise-card {
    width:100%;
    background-color: #F6F2F2;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.exercise-card h3 {
    margin: 0 0 0.5em 0;
    font-family: var(--role-font, sans-serif);
    color: #222;
}

.exercise-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}


.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 0.5em;
    gap:1em;
}

.time-badge {
    background-color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    font-size: 0.85em;
    color: #666;
    border: 1px solid #ddd;
    margin:0;
}


.main-card {
    border-left: 4px solid #ba9686;
    background-color: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #ba9686;
}

.workout-stats {
    display: flex;
    gap: 1em;
    margin-bottom: 1em;
    background-color: #F6F2F2;
    padding: 1em;
    border-radius: 8px;
}

.stat-box {
    flex: 1;
    text-align: center;
    font-size: 0.9em;
    color: #444;
}

.stat-box strong {
    display: block;
    color: #ba9686;
    text-transform: uppercase;
    font-size: 0.8em;
    margin-bottom: 0.3em;
}


.pro-tips-box {
    background-color: #fff8f5;
    border: 2px dashed #ba9686;
    padding: 2em;
    border-radius: 12px;
    margin-bottom: 3em;
}

.pro-tips-box h2 {
    margin-top: 0;
    color: #ba9686;
}

.pro-tips-box ul {
    margin: 0;
    padding-left: 1.5em;
    color: #555;
    line-height: 1.8;
}


.conversion-cta {
    text-align: center;
    background-color: #111;
    color: white;
    padding: 3em 2em;
    border-radius: 12px;
}

.conversion-cta h2 {
    color: white;
    margin-top: 0;
}

.conversion-cta p {
    color: #ccc;
    margin-bottom: 2em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}



.final-cta:hover {
    background-color: #a07d6d;
}

*{
    /* outline: 1px solid red; */
}

@media only screen and (max-width: 768px) {
    .workout-result-container{
        margin: 0;
        width: 100%;
        margin-block:2em;
      
    }
    .workout-result-wrapper{
        width: 90%;
    }
    .workout-header{
        width: 100%;
    }
    .workout-header .title{
        font-size: 1.85em;
    }
    .workout-stats {
        flex-direction: column;
        justify-content: start;
        gap: 0.5em;
    }
    .workout-stats .stat-box{
        margin: 0;
    }
    .workout-stats strong{
        margin: 0;
    }
    .workout-section .section-title{
        font-size: 1.2em;
    }
    .card-header{
        gap: 0.25em;
    }
    .card-header h3{
        font-size: 1em;
    }
    p{
        text-align: justify;
    }
    .conversion-cta p{
        text-align: center;
    }
    
    
    .stat-box {
        display: flex;
        justify-content: space-between;
        text-align: left;
        border-bottom: 1px solid #ddd;
        padding-bottom: 0.5em;
    }
    .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .button-group{
        display:flex;
        flex-direction:column;
    }
    .exercise-card{
        width: 80%;
    }
    .card-header{
        flex-direction: column;
    }
    .pro-tips-box h2{
        margin-bottom: 1em;
    }
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95); 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.custom-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f0e6e1; 
    border-top: 5px solid #ba9686; 
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}