/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #e9ecef;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: calc(100vh - 40px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    padding: 20px 60px;
    background-color: #00AFEF;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 60px;
}

.logo-a {
    position: relative;
    display: inline-block;
}

.logo-a::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 28px;
    height: 14px;
    border-top: 3.5px solid #2563eb;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-radius: 60% 60% 0 0 / 100% 100% 0 0;
    transform: rotate(-8deg);
    z-index: -1;
}

.logo-text {
    letter-spacing: 3px;
}

.header-bar {
    display: none;
}

/* Main Content */
.main-content {
    padding: 50px 60px;
}

/* Agreement Page Styles */
.agreement-title {
    font-size: 2.2rem;
    color: #00AFEF;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.agreement-text {
    margin-bottom: 35px;
    text-align: justify;
}

.agreement-text p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Info Section Styles */
.info-section {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
}

.info-content {
    padding: 20px;
}

.info-heading {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.info-row {
    display: flex;
    gap: 50px;
}

.info-column {
    flex: 1;
}

.info-column-right {
    text-align: right;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.value {
    color: #212529;
    font-size: 1rem;
}

/* Electronic Note */
.electronic-note {
    color: #2563eb;
    text-align: center;
    margin: 25px 0;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Pre-approved Label */
.pre-approved-label {
    background-color: #fd7e14;
    color: white;
    text-align: center;
    padding: 18px 30px;
    margin: 30px auto;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 2px;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Witness Clause */
.witness-clause {
    text-align: center;
    margin: 35px 0 40px 0;
    font-weight: normal;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Signature Section */
.signature-section {
    display: flex;
    gap: 60px;
    margin-top: 50px;
    padding-bottom: 40px;
}

.signature-block {
    flex: 1;
    text-align: center;
}

.signature-header {
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    font-size: 1rem;
}

.signature-line {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 1.8rem;
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
}

.underline {
    border-bottom: 2px solid #333;
    width: 220px;
    margin: 0 auto;
}

.printed-name {
    font-weight: bold;
    margin: 12px 0 8px 0;
    color: #333;
    font-size: 0.95rem;
}

.signature-date {
    color: #666;
    font-size: 0.9rem;
}

/* Form Page Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    color: #2563eb;
    text-align: center;
    margin-bottom: 10px;
}

.form-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.agreement-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

.form-help {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .info-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .signature-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .agreement-title {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .agreement-form {
        padding: 20px;
    }
}
