/* Inherit variables from style.css */

/* Hide phone container by default on large screens */
.phone-container {
    display: none;
}   

/* Desktop Container acts as the 'Letter' view */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* Align top, don't stretch */
    width: 100%;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

/* Common Card Styles */
.back-container1, .back-container2, .back-container3, .back-container4 {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.back-container1:hover, .back-container2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Slightly elevated on hover */
}

/* Specific Containers */
.back-container1 {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.back-container2 {
    flex: 1;
    min-width: 300px;
}

/* Op-container */
.op-container {
    /* height: 100%; Removed to fit content */
    display: flex;
    flex-direction: column;
}

/* Wrapper for buttons */
.buttons-wrapper {
    margin-top: 2rem; /* Fixed margin instead of auto */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typography */
.p1, .p2, .p3, .p4, .p5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.p2, .p3 {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.p4 {
    font-weight: 700;
    margin-top: 1.5rem;
    color: var(--primary-green);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.p5 {
    text-align: justify;
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

/* Form Inputs */
input[type="text"], 
select, 
.motive-inp {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fdfdfd;
}

input[type="text"]:focus, 
select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Select spacing */
select {
    cursor: pointer;
    background-position: calc(100% - 20px) calc(0.8em + 2px),
                         calc(100% - 15px) calc(0.8em + 2px); /* Adjusted vertical position */
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem; /* Make room for custom arrow */
}

/* Inline inputs in paragraph */
.days-inp, .month2-inp, .motive-inp {
    border-bottom: 2px solid #ccc;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    text-align: center;
    background: transparent;
    font-weight: 600;
    padding: 0 5px;
}

.days-inp:focus, .month2-inp:focus, .motive-inp:focus {
    border-bottom-color: var(--primary-green);
    box-shadow: none;
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: var(--primary-green);
    transform: scale(1.2);
    margin: 0 5px;
    cursor: pointer;
}

/* File Input Styling */
input[type=file]::file-selector-button {
    font-family: "Poppins", sans-serif;
    margin-right: 10px;
    border: none;
    background: var(--primary-green);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

input[type=file]::file-selector-button:hover {
    background-color: var(--accent-green);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Buttons */
.btn-send {
    background: linear-gradient(135deg, var(--highlight-orange), var(--hover-orange));
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
    font-size: 1rem;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 102, 0, 0.3);
}

.btn-test {
    background-color: var(--text-dark);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-test:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive Switching */
@media (max-width: 900px) {
    .flex-container {
        display: none; /* Hide Desktop view */
    }

    .phone-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .back-container3, .back-container4 {
        width: 100%;
        max-width: 500px; /* Limit width on mobile */
        padding: 2rem;
        margin: 0;
    }
    
    .p1-2 {
        font-weight: 700;
        text-align: center;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--bg-color);
        padding-bottom: 1rem;
    }
    
    .p2-2, .p3-2, .p4-2, .p5-2, .p6-2 {
        margin-bottom: 1rem;
        border-bottom: 1px dashed #eee;
        padding-bottom: 0.5rem;
    }

    /* Make mobile inputs more touch friendly */
    input[type="text"], select {
        padding: 0.6rem; 
        font-size: 1rem;
    }
    
    .days-inp, .month2-inp {
        /* Reset inline styles for standard input look on mobile/phone-container? 
           The phone container HTML uses standard classes. I'll stick to full width inputs for ease. */
        border: 1px solid #ddd;
        border-radius: 6px;
        text-align: left;
        width: auto !important;
        display: inline-block;
    }
}


