/* Invictus CRM Companion – Kontaktformular (INVICTUS CI-Styleguide) */

.icc-contact-form-wrap {
    max-width: 560px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.icc-cf-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input fields – INVICTUS CI (radius 10px, mint focus) */
.icc-cf-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2E4ED;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 300;
    color: #0F0625;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.icc-cf-input:focus {
    border-color: #5FCAB4;
    box-shadow: 0 0 0 3px rgba(95, 202, 180, 0.15);
}

.icc-cf-input::placeholder {
    color: #777;
    font-weight: 400;
}

.icc-cf-input.icc-cf-input--error {
    border-color: #EF5033;
    box-shadow: 0 0 0 3px rgba(239, 80, 51, 0.1);
}

/* Textarea */
.icc-cf-textarea {
    border-radius: 10px;
    resize: vertical;
    min-height: 56px;
    line-height: 1.5;
}

/* Privacy checkbox */
.icc-cf-privacy {
    padding: 4px 0;
}

.icc-cf-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.icc-cf-privacy-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #5FCAB4;
    cursor: pointer;
}

.icc-cf-privacy-text a {
    color: #5FCAB4;
    text-decoration: underline;
}

.icc-cf-privacy-text a:hover {
    color: #4DB9A3;
}

.icc-cf-privacy.icc-cf-privacy--error .icc-cf-privacy-checkbox {
    outline: 2px solid #EF5033;
    outline-offset: 1px;
}

/* Button */
.icc-cf-btn-wrap {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.icc-cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #5FCAB4;
    color: #0F0625;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1.4;
    white-space: nowrap;
}

.icc-cf-submit:hover {
    background: #4DB9A3;
    box-shadow: 0 4px 15px rgba(95, 202, 180, 0.35);
    transform: translateY(-1px);
}

.icc-cf-submit:active {
    transform: scale(0.98);
}

.icc-cf-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.icc-cf-spinner {
    width: 18px;
    height: 18px;
    animation: icc-cf-spin 1s linear infinite;
}

@keyframes icc-cf-spin {
    to { transform: rotate(360deg); }
}

/* Status messages */
.icc-cf-message {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.icc-cf-message--success {
    background: rgba(71, 178, 107, 0.12);
    color: #47B26B;
    border: 1px solid rgba(71, 178, 107, 0.30);
}

.icc-cf-message--error {
    background: rgba(239, 80, 51, 0.10);
    color: #EF5033;
    border: 1px solid rgba(239, 80, 51, 0.25);
}

/* Success state */
.icc-cf-success {
    text-align: center;
    padding: 32px 16px;
    animation: icc-cf-fadeUp 0.5s ease;
}

.icc-cf-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(71, 178, 107, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: icc-cf-popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icc-cf-success-icon svg {
    width: 36px;
    height: 36px;
    color: #47B26B;
}

.icc-cf-success-heading {
    font-size: 20px;
    font-weight: 700;
    color: #0F0625;
    margin: 0;
    line-height: 1.4;
}

@keyframes icc-cf-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes icc-cf-popIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 640px) {
    .icc-cf-input {
        padding: 12px 20px;
        font-size: 14px;
    }

    .icc-cf-submit {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
    }

    .icc-cf-btn-wrap {
        justify-content: stretch;
    }
}
