
/* .antica-contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
} */

/* Paragraph spacing */
#myForm p {
    margin: 0 0 25px 0;
    position: relative;
}

/* Input wrapper */
.custom-input-wrapper {
    display: block;
    width: 100%;
    position: relative;
}

/* Input fields */
.custom-input,
.custom-textarea,
.custom-select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.custom-input:focus,
.custom-textarea:focus,
.custom-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    outline: none;
}

/* Floating labels */
.custom-input-wrapper::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.custom-input:focus + ::before,
.custom-input:not(:placeholder-shown) + ::before {
    top: 0;
    font-size: 12px;
    color: #007bff;
}

/* Phone field specific */
.phone-field {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
}

.phone-field .custom-select {
    min-width: 0;
    background: white;
    border: 2px solid #e9ecef;
}

.phone-field .custom-input {
    width: 100%;
}

/* Textarea specific */
.custom-textarea {
    min-height: 120px;
    resize: none;
    border-radius: 12px;
    padding: 20px;
}

/* Submit button */
/* #myForm button[type="submit"] {
    background: linear-gradient(45deg, #007bff, #00c4cc);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#myForm button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

#myForm button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#myForm button[type="submit"]:hover::after {
    width: 200%;
    height: 200%;
} */

/*for error */
/* Updated CSS with better error styling */
.custom-input-wrapper {
    position: relative;
}

.error-tooltip {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    font-size: 12px;
    color: #fff;
    background: #ff4444;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.custom-input-wrapper.has-error .custom-input,
.custom-input-wrapper.has-error .custom-textarea {
    border: 2px solid #ff4444;
    animation: shake 0.3s ease;
}

.custom-input-wrapper.has-error .error-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    color: #ff4444;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
/* Placeholder styling */
/* .custom-input::placeholder,
.custom-textarea::placeholder {
    color: transparent;
} */

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #myForm {
        padding: 11px;
        margin: 4px;
    }

    .phone-field {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .custom-input,
    .custom-textarea,
    .custom-select {
        font-size: 14px;
        padding: 12px;
    }

    #myForm button[type="submit"] {
        padding: 0px 20px;
        margin-top: 32px;
    }
}



/* Additional CSS for success animation */
.success-animation {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease 2.5s forwards;
}

.success-animation svg {
    width: 25px;
    height: 25px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    animation: draw 0.5s ease-out;
}

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

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes draw {
    from { stroke-dasharray: 60; stroke-dashoffset: 60; }
    to { stroke-dashoffset: 0; }
}
.country-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    z-index: 1000;
    display: none;
}

.country-option {
    padding: 8px;
    cursor: pointer;
}

.country-option:hover {
    background: #f0f0f0;
}

.custom-input-wrapper {
    position: relative;
}

#countryCodeInput {
    width: 100%; /* Full width of its container */
    padding: 8px;
    box-sizing: border-box;
}
.phone-input-container {
    position: relative; /* For dropdown positioning */
    width: 150px; /* Fixed width for country code */
}
.custom-input-wrapper.phone-field {
    display: flex;
    align-items: flex-start; /* Align tops of inputs */
    gap: 10px; /* Space between country code and phone input */
    position: relative;
    width: 100%; /* Ensure it takes full available width */
}