/* Forms Page Specific Styles */

.forms-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.forms-header {
    text-align: center;
    margin-bottom: 4rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.form-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-preview {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: crosshair;
}

.form-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Magnifier Lens */
.magnifier {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid var(--accent-orange);
    border-radius: 50%;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.magnifier.active {
    opacity: 1;
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 83, 69, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.form-preview:hover .form-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
}

.overlay-content i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.overlay-content p {
    font-size: 1.2rem;
    font-weight: 500;
}

.form-info {
    padding: 2rem;
}

.form-info h3 {
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.form-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-meta i {
    color: var(--accent-orange);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-download i {
    font-size: 1rem;
}

/* Information Box */
.info-box {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-icon {
    background-color: var(--accent-orange);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 2rem;
    color: var(--white);
}

.info-content h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Active nav link */
.nav a.active {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Mobile Fullscreen View */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 20px;
    overflow: auto;
}

.fullscreen-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10000;
    transition: all 0.3s;
}

.close-fullscreen:hover {
    background-color: #e67e22;
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 968px) {
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-preview {
        height: 400px;
    }

    .magnifier {
        display: none !important;
    }

    .form-preview {
        cursor: pointer;
    }

    .overlay-content p {
        font-size: 1rem;
    }

    .overlay-content i {
        font-size: 2.5rem;
    }

    .info-box {
        flex-direction: column;
        padding: 2rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
    }

    .info-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .forms-section {
        padding: 60px 0 50px;
    }

    .forms-header {
        margin-bottom: 2rem;
    }

    .form-preview {
        height: 350px;
    }

    .form-info {
        padding: 1.5rem;
    }

    .form-info h3 {
        font-size: 1.2rem;
    }

    .form-meta {
        gap: 1rem;
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-content h4 {
        font-size: 1.2rem;
    }

    .overlay-content p {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn-download,
    .mobile-menu-toggle,
    .form-overlay {
        display: none;
    }

    .form-preview {
        height: auto;
    }

    .form-card {
        page-break-inside: avoid;
    }
}