﻿@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #00a380 0%, #00c192 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card {
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.header-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #00a380 0%, #00c192 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-section h1 {
    font-size: 1.5em;
    margin: 0;
    letter-spacing: -0.5px;
}

.header-section p {
    margin: 5px 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.form-section {
    padding: 40px 30px 30px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.form-control:focus {
    border-color: #00a380;
    box-shadow: 0 0 0 2px rgba(0, 163, 128, 0.2);
    background: white;
}

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

.form-label {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 4px;
    border-radius: 5px;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -12px;
    left: 15px;
    font-size: 13px;
    color: #00a380;
    background: white;
    padding: 0 8px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.form-control:focus ~ .input-icon {
    color: #00a380;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input:hover + .file-input-label {
    border-color: #00a380;
}

.file-name {
    margin-top: 8px;
    color: #555;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #00a380;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: #008a6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info-item {
    flex: 1 1 150px;
    text-align: center;
    font-size: .9rem;
}

.contact-info-item i {
    font-size: 24px;
    color: #00a380;
    margin-bottom: 10px;
}

.header-section {
    position: relative;
}

.company-logo {
    left: 30px;
    top: 30px;
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 163, 128, 0.3);
    border-top: 4px solid #00a380;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 50%;
    right: 50%;
    background: #35b875;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
    cursor: pointer;
    z-index: 1001;
}

.error-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 50%;
    right: 50%;
    background: #ff5b5b;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
    cursor: pointer;
    z-index: 1001;
}

.toast-span {
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.success-message i {
    margin-right: 10px;
}

@media (max-width: 500px) {
    .header-section h1 {
        font-size: 1.5em;
    }

    .contact-info {
        gap: 15px;
    }

    .contact-info-item {
        flex: 1 1 100%;
    }

    .company-logo {
        width: 45px;
        height: 45px;
    }

    .success-message, .error-message {
        width: calc(100% - 40px);
        margin: 0 20px;
        right: 0;
    }
}